home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1998 July / EnigmA AMIGA RUN 29 (1998)(G.R. Edizioni)(IT)[!][issue 1998-07 & 08].iso / recent / warpup1.lha / WarpUP-WarpOS / WarpRace / WarpRace.i < prev   
Text File  |  1997-09-24  |  4KB  |  99 lines

  1.                 IFND    WARPRACE_I
  2. WARPRACE_I              SET     1
  3. **
  4. **      $VER: WarpRace.i 1.0 (20.9.97)
  5. **
  6. **      '(C) Copyright 1997 Haage & Partner Computer GmbH'
  7. **           All Rights Reserved
  8. **
  9. **      structures for WarpRace.s and custom modules
  10. **
  11. **
  12.  
  13.                 IFND    EXEC_TYPES_I
  14.                 include exec/types.i
  15.                 ENDC
  16.  
  17. ****  data structures/equates used by custom modules
  18.  
  19. WR_ID           =       $52414345               ;identifaction value passed to
  20.                                                 ;the module as first argument
  21.  
  22. * data structure passed to the module as second argument
  23.  
  24.         STRUCTURE       WR_INPUT,0
  25.         APTR            WRI_POWERPCBASE         ;base of powerpc.library
  26.         ULONG           WRI_VERSION             ;version of powerpc.library
  27.         FPTR            WRI_STARTTIMER_68K      ;-> start timer function (68K)
  28.         FPTR            WRI_STOPTIMER_68K       ;-> stop timer function (68K)
  29.         FPTR            WRI_STARTTIMER_PPC      ;-> start timer function (PPC)
  30.         FPTR            WRI_STOPTIMER_PPC       ;-> stop timer function (PPC)
  31.         APTR            WRI_LINKERDB            ;LinkerDB (arg for PPC functions)
  32.         BOOL            WRI_68K                 ;TRUE for 68K-modules
  33.         ULONG           WRI_FLAGS               ;not used yet
  34.         APTR            WRI_EXT                 ;reserved for future extension
  35.         LABEL           WRI_SIZE
  36.  
  37. * data structure returned from the module (if not NULL is returned)
  38.  
  39.         STRUCTURE       WR_OUTPUT,0
  40.         APTR            WRO_MODNAME             ;module name
  41.         APTR            WRO_SHORT               ;module short description
  42.         APTR            WRO_DESCRIPTION         ;module full description
  43.         APTR            WRO_AUTHOR              ;module author
  44.         ULONG           WRO_VERSION             ;module version
  45.         ULONG           WRO_REVISION            ;module revision
  46.         ULONG           WRO_REVSIZE             ;number of digits for revision
  47.         ULONG           WRO_FLAGS               ;not used yet
  48.         APTR            WRO_RESULT              ;result used for statistics
  49.         ULONG           WRO_RESULT_TYPE         ;result type (see below)
  50.         APTR            WRO_RESULT_STRING       ;result string for VPrintF
  51.         APTR            WRO_RESULT_PARAMS       ;arguments for result string
  52.         ULONG           WRO_STATUS              ;completion status (see below)
  53.         APTR            WRO_ERRORSTRING         ;error string for VPrintF
  54.         APTR            WRO_ERRORPARAMS         ;arguments for error string
  55.         APTR            WRO_EXT                 ;reserved for future extension
  56.         LABEL           WRO_SIZE
  57.  
  58. * result types
  59.  
  60. RES_UNKNOWN             =       0               ;unknown
  61. RES_PROP                =       1               ;unknown - proportional to power
  62. RES_INVPROP             =       2               ;unknown - inv. proportional
  63. RES_MICROSECS           =       3               ;time in microseconds
  64. RES_BYTESPERSEC         =       4               ;memory performance (bytes/sec)
  65.  
  66. * status values
  67.  
  68. STATUS_SUCCESS          =       -1
  69. STATUS_ERROR            =       0
  70.  
  71.  
  72. ****  Internal data structures (not used by custom modules)
  73.  
  74.         STRUCTURE       DIR,0
  75.         APTR            DIR_NEXT
  76.         APTR            DIR_LOCK
  77.         APTR            DIR_FIB
  78.         APTR            DIR_PATH
  79.         APTR            DIR_PARENT
  80.         APTR            DIR_CHILD
  81.         APTR            DIR_MODULES
  82.         LABEL           DIR_SIZE
  83.  
  84.         STRUCTURE       FILE,0
  85.         APTR            FILE_NEXT
  86.         APTR            FILE_TEXT
  87.         LABEL           FILE_SIZE
  88.  
  89.         STRUCTURE       CLIARG,0
  90.         ULONG           CLIARG_HELP
  91.         APTR            CLIARG_MODULES
  92.         ULONG           CLIARG_CPU
  93.         ULONG           CLIARG_ALL
  94.         ULONG           CLIARG_FULL
  95.         APTR            CLIARG_STATS
  96.         LABEL           CLIARG_SIZE
  97.  
  98.                 ENDC
  99.